<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>提交审批流</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../lib/layui/css/layui.css" media="all">
    <script type="text/javascript" src='../../lib/layui/layui.all.js'></script>
    <script type="text/javascript" src='../../js/jquery.min.js'></script>
    <script type="text/javascript" src="../../management/base/common.js"></script>
    <script type="text/javascript" src="../approval/submitApproval.js"></script>
</head>
<body style="padding: 10px;">
<div id="companyFormDiv" class='layui-form-item layui-row' style="padding:0;margin:0;">
    <form id="serviceForm" class="layui-form bs-edit-form" style="padding: 20px;">
        <input type="hidden" class="data_init_by_user" name="serviceId"/>
        <input type="hidden" class="data_init_by_user" name="companyId"/>
        <input type="hidden" name="approvalType" value="0"/>

        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red">*</span> 产品：</label>
            <div class="layui-input-block bs-input-div" type="text">
                <select id="productId" name="productId" class="layui-input bs-form-select">
                    <option value="1">测试1</option>
                    <option value="2">测试2</option>
                    <option value="3">测试3</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red">*</span> 开通方式：</label>
            <div class="layui-input-block bs-input-div" type="text">
                <input type="radio" name="approvalWay" lay-filter="approvalWay" title="审批流" value="0" checked>
                <input type="radio" name="approvalWay" lay-filter="approvalWay" title="邮件" value="1">
            </div>
        </div>

        <div class="layui-form-item layui-upload" style="margin-top: 25px;display: none">
            <label class="layui-form-label">邮件截图：</label>
            <div class="layui-input-block bs-input-div" type="text">
                <div class="upload_body_div_class">
                    <img aimKey="enclosureId" class="upload_show_file_class" src=""  style="display: none;max-width: 700px;max-height: 400px"/>
                    <a class="upload_show_status_class" style="display: none"></a>
                    <input type="hidden" class="submit_file_id_class" name="enclosureId" value=""/>
                    <input type="hidden" class="submit_file_name_class" name="enclosureName" value=""/>
                    <button type="button" id="img_upload_btn" class="layui-btn layui-btn-normal" field="backgroundFile" style="vertical-align: bottom">选择上传截图</button>
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red">*</span> 审批流：</label>
            <div class="layui-input-block bs-input-div" type="text" id="approve_approval"></div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">申请原因：</label>
            <div class="layui-input-block bs-input-div" type="text">
                <textarea name="description" placeholder="请输入申请原因，会展示在审批流中" class="layui-textarea" maxlength="100"></textarea>
            </div>
        </div>

        <div class="layui-form-item" style="margin-top: 50px;">
            <div class="layui-input-block">
                <button lay-submit id="submit" type="button" lay-filter="submitBtn" class="layui-btn">提交</button>
            </div>
        </div>
    </form>
</div>
</body>
</html>